package plus.easydo.easypush.dingtalk.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author laoyu
 * @version 1.0
 * @date 2022/2/26
 */
@Data
@Builder
@ApiModel("钉钉工作通知对象")
@NoArgsConstructor
@AllArgsConstructor
public class DingTalkWorkNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("需要发送的组织或用户对象结合")
    private DingTalkSelectUsers dingTalkSelectUsers;

    @ApiModelProperty("需要发送信息封装")
    private DingTalkWorkNoticeMessage dingTalkWorkNoticeMessage;

    @ApiModelProperty("消息类型 :文本消息-text 图片消息-image 语音消息-voice 文件消息-file 链接消息-link OA消息-oa Markdown消息-markdown 卡片消息-action_card")
    private String messageType;

}
